﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using TPCN.DAL;

namespace TPCN.Controls
{
    public partial class uc_bestseller : System.Web.UI.UserControl
    {
        List<HangObj> list = new List<HangObj>();
        string html = String.Empty;

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                rptBestSeller.DataSource = HangDAL.GetByBestSeller(10);
                rptBestSeller.DataBind();
            }
        }

        protected string BuildPath(Object HangID)
        {
            return "~/Chitietsanpham.aspx?id=" + Convert.ToString(HangID);
        }
    }
}